package com.heima.common.constants;

/**
 * @author Xiao
 * @version 1.0
 * @description 定时器常量类
 * @date 2021/11/24
 */
public class ScheduleConstants {
    //task状态
    public static final Integer SCHEDULED=0;   //初始化状态

    public static final Integer EXECUTED=1;       //已执行状态

    public static final Integer CANCELLED=2;   //已取消状态

    public static final String FUTURE="future_";   //未来数据key前缀

    public static final String TOPIC="topic_";     //当前数据key前缀

    public static final Integer VERSION_INIT = 1;   //初始版本号

    public static final String FUTURE_TASK_SUMC = "FUTURE_TASK_SUMC";   //分布式锁名称
    public static final String LOCK_SUFFIX="_lock"; //分布式锁后缀
    public static final Long LOCK_EXPIRE = 30 * 1000L;  //分布式锁过期时间

    public static final Integer REFRESH_TIME = 5;  //数据库同步时间
}
